<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>Real Estate Management System</title>
        <link href="style.css" rel="stylesheet" type="text/css"></link>
        <div style="text-align: center;"><h:graphicImage url="/Images/back.png"></h:graphicImage></div>

    </h:head>
    <h:body>
      
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

                        <div id="dummy"></div>
                          
                        <p:accordionPanel id="panelsidebar"  autoHeight="false" style="width: 185px;text-align: left;">  
                            <p:tab title="Agent Login">  
                                <h:form>
                                <h:panelGrid columns="1" >
                                    <h:outputText value="User Name"></h:outputText> <h:inputText id="email" value="#{agentbean.username}"></h:inputText>  
                                    <h:outputText value="Password"> </h:outputText> <h:inputSecret value="#{agentbean.password}"></h:inputSecret> 
                                    <h:commandButton value="Submit" action="#{agentbean.login}"/>
                                    <h:commandLink action="Supervisor.xhtml" value="Supervisor"/>
                                </h:panelGrid> 
                                    </h:form>
                            </p:tab>  
                            <p:tab id="p1" title="Supervisor Login"> 
                                
                                <h:panelGrid columns="1">
                                    <h:form>
                                    <h:outputText value="User Name"></h:outputText> <h:inputText value = "#{supervisorbean.supervisor.userName}" ></h:inputText>                                      
                                    <h:outputText value="Password"> </h:outputText> <h:inputSecret value = "#{supervisorbean.supervisor.password}"></h:inputSecret> 
                                    <p:commandButton value="Submit" action="#{supervisorbean.login}" update="p1"></p:commandButton>>   
                                    <h:commandLink action="Agent.xhtml" value="Agent"  />
                                   </h:form>
                                </h:panelGrid> 
                              
                          
                            </p:tab>  
                        </p:accordionPanel>   
                              



                        <!-- end #sidebar -->

                        <div id="content">
                            <p:panel header="Panel">
                                <h3>Welcome to Real Estate Management System !</h3>
                                <p>Please choose an action from menu to do an operation.</p>
                                <p:messages/>
                            </p:panel> 

                        </div>
                        <!-- end #content -->

                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İstanbul Teknik Üniversitesi - Software Engineering Course - Real Estate Management</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>

    </h:body>
</html>

<!--<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <h:commandLink value="Supervisor" action="Supervisor.xhtml"></h:commandLink>
            <h:commandLink value="Agent" action="Agent.xhtml"></h:commandLink>
        </h:form><p:panel header="Login Form">
         <h:panelGrid columns="2">
            <h:outputText value="User Name"></h:outputText> <p:inputText></p:inputText>  
            <h:outputText value="Password"> </h:outputText> <h:inputSecret></h:inputSecret> 
            <p:button value="Submit"></p:button>   <p:button value="Reset"></p:button>  
         </h:panelGrid>
       
      </p:panel>
    </h:body>
</html>-->

